# -*- coding: utf-8 -*-
# @Time    : 2021/3/19 17:40
# @Author  : Zhangrenjie
# @Email   : zhangrenjie1998@163.com
# @File    : text_sum.py
# @Software: PyCharm

num = 1
sum_num = 0
while num <= 50:
    sum_num += num
    num += 1
print(sum_num)